﻿@model XSTDZ.ERP.Application.DataContracts.OperationDto

@{
    ViewBag.Title = " - 修改操作 ";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
}
<h2>修改操作</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)



        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.ParentId)
    //if (@ViewBag.IsParent)
    //{
        <div class="editor-label">
            @Html.LabelFor(model => model.Code)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Code, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Code)
        </div>
    
        <div class="editor-label">
            @Html.LabelFor(model => model.OperationName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.OperationName, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.OperationName)
        </div>
     <div class="editor-label">
            @Html.LabelFor(model => model.IconUrl)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.IconUrl, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.IconUrl)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Desc)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Desc, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.Desc)
        </div>
      <div class="editor-label">
            @Html.LabelFor(model => model.OrderNum)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.OrderNum, new { @class = "text" })
            @Html.ValidationMessageFor(model => model.OrderNum)
        </div>
  <p class="divBtn">
             <input type="hidden" id="hidHttpRefeParent" name="hidHttpRefeParent" value="grid" />
            <input type="hidden" id="hidHttpPostState" name="hidHttpPostState" value="@ViewBag.PostState" />
            <input type="submit" value="确定更新"  class="BtnSubmit" />
            <input type="button" value="@XSTDZ.ERP.Infrastructure.SystemConfig.BtnClose" id="btnFromClose" name="btnFromClose" class="BtnClose" />
        </p>

}
<script type="text/javascript" src="@Url.Content("~/Content/js/formBase.js")"></script>